package yf.mall.service;

import org.apache.ibatis.annotations.Param;
import yf.mall.entity.MallGoodsEntity;
import yf.mall.entity.MallTypeEntity;
import com.yf.service.BaseService;

import java.util.List;

/**
 * 分类Service接口
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Fri Nov 01 10:57:07 CST 2019
 */
public interface MallTypeService extends BaseService<MallTypeEntity>{


    /**

     List<MallTypeVo> queryListVo(MallTypeVo mallTypeVo);

        MallTypeVo getVo(Long id);

     **/

   /***********BACK***********/
   void deleteByTypeIdBatch(Long[] id);

   List<MallTypeEntity> findByParentId(Long parentId);

    void  saveGoodsIdAndTypeId(Long goods_id, Long type_id);

    void  delByGoodsId(Long goods_id);
    void  delByGoodsIdBatch(Long[] goods_id);

    List findByGoodsId(Long goods_id);

    List findByShopId(Long goods_id);


    /***********API***********/

    List<MallTypeEntity>  findAll();


    List<MallTypeEntity> findType();

    List<Long> findByType(Long type);

    List<MallGoodsEntity>  findTypeByPid(Long pid,Integer shelf);



}
